import type { Plugin } from "vue"

import fButton from "@/components/f-button/index.vue"
import fSwitch from "@/components/f-switch/index.vue"
import fTable from "@/components/f-table/index.vue"
import fTableColum from "@/components/f-table/f-table-colum/index.vue"
import fDialog from "@/components/f-dialog/index.vue"

// 统一注册全局组件
const MyComponents: Plugin<[]> = {
    install: (app) => {
        app.component("fButton", fButton)
        app.component("fSwitch", fSwitch)
        app.component("fTable", fTable)
        app.component("fTableColum", fTableColum)
        app.component("fDialog", fDialog)
    }
}

export default MyComponents